﻿using System.Collections;
using System.Reflection;
using UnityEditor;


namespace Nirvana
{
    public static class SceneViewEx 
    {
        public static SceneView.SceneViewState GetSceneViewState(this SceneView view)
        {
            FieldInfo field = typeof(SceneView).GetField("m_SceneViewState", (BindingFlags)36);
            return field.GetValue(view) as SceneView.SceneViewState;
        }

    }
}

